package com.scott.order.service;

import com.scott.order.dao.OrderDao;
import com.scott.order.pojo.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderService {

    @Resource
    private OrderDao orderDao;


    public Order queryOrderById(Long orderId) {
        // 1.查询订单
        Order order = orderDao.findById(orderId);
        return order;
    }

}
